/**
 * Main Style Sheet
 * Caracal Installation Script
 *
 * Copyright (c) 2014. by Way2CU, http://way2cu.com
 * Authors: Mladen Mijatov
 */

html {
	height: 100%;
}

body {
	margin: 0px;
	padding: 0px;

	background-color: #e0e0e0;

	font-size: 14px;
	font-family: Ubuntu;
}

div#main {
	display: block;
	width: 1000px;

	margin-left: auto;
	margin-right: auto;
	margin-top: 100px;

	border-radius: 10px;
	background-color: white;
	box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

div#pages {
	display: block;
	min-height: 450px;

	background-color: #c9c9c9;
	position: relative;
	overflow: hidden;
}

div#pages div.page {
	display: block;
	width: calc(100% - 40px);
	height: calc(100% - 40px);

	padding: 20px;

	position: absolute;
	left: 0px;
	top: 0px;

	background-color: #d0d0d0;
	box-shadow: 0px 0px 20px black;

	visibility: hidden;
	overflow: hidden;
	transition: all 0.7s;

	transform: rotateX(-90deg);
	transform-origin: 50% 50px 50px;
	-webkit-transform: rotateX(-90deg);
	-webkit-transform-origin: 50% 50px 50px;
}

div#pages div.page.active {
	opacity: 1;
	visibility: visible;

	background-color: white;

	transform: none;
	-webkit-transform: none;
}

/**
 * Header
 */
header {
	display: block;
	height: 100px;

	position: relative;

	padding: 20px;
	padding-left: 120px;

	border-radius: 10px 10px 0px 0px;
	background-color: #2c3e50;
	background-image: url(%-embed: ../modules/backend/images/logo.svg%);
	background-size: auto calc(100% - 40px);
	background-position: 15px center;
	background-repeat: no-repeat;

	color: white;
}

div.logo {
	display: block;

	margin-top: 17px;
	padding-top: 50px;

	background-image: url(%-embed: ../modules/backend/images/logo_text.svg%);
	background-size: auto 50px;
	background-position: left top;
	background-repeat: no-repeat;

	font-size: 1.45em;
	font-weight: 100;
}

/**
 * Step indicator
 */
nav#steps {
	display: block;
	visibility: hidden;
	opacity: 0;

	position: absolute;
	right: 20px;
	bottom: 14px;

	transition: all 0.3s;
}

nav#steps.visible {
	visibility: visible;
	opacity: 1;
}

nav#steps a {
	display: inline-block;
	width: 100px;

	position: relative;

	padding-top: 85px;
	padding-bottom: 3px;

	border-bottom: 1px solid transparent;
	background-size: 80px;
	background-position: center top;
	background-repeat: no-repeat;

	text-align: center;
	cursor: pointer;
	opacity: 0;
	
	transition: border 0.3s, opacity 0.5s;
}

nav#steps.visible a {
	opacity: 1;
}

nav#steps a:hover {
	border-color: #E74C3C; 
}

nav#steps a:after {
	display: block;
	content: ' ';
	width: 10px;
	height: 10px;

	position: absolute;
	right: 3px;
	top: 3px;

	border-radius: 5px;
	background-color: #77c06c;

	font-size: 0px;
	opacity: 0;

	transition: all 0.5s;
}

nav#steps a.checked:after {
	opacity: 1;
}

nav#steps a.general {
	background-image: url(%-embed: images/general.svg%);
	transition-delay: 0s, 0s;
}

nav#steps a.general.active {
	background-image: url(%-embed: images/general_a.svg%);
}

nav#steps a.admin {
	background-image: url(%-embed: images/admin.svg%);
	transition-delay: 0s, 0.1s;
}

nav#steps a.admin.active {
	background-image: url(%-embed: images/admin_a.svg%);
}

nav#steps a.database {
	background-image: url(%-embed: images/database.svg%);
	transition-delay: 0s, 0.2s;
}

nav#steps a.database.active {
	background-image: url(%-embed: images/database_a.svg%);
}

nav#steps a.languages {
	background-image: url(%-embed: images/languages.svg%);
	transition-delay: 0s, 0.3s;
}

nav#steps a.languages.active {
	background-image: url(%-embed: images/languages_a.svg%);
}

nav#steps a.template {
	background-image: url(%-embed: images/template.svg%);
	transition-delay: 0s, 0.4s;
}

nav#steps a.template.active {
	background-image: url(%-embed: images/template_a.svg%);
}

/**
 * Footer
 */
footer {
	display: block;
	padding: 10px;

	border-radius: 0px 0px 10px 10px;
	background-color: #d9d9d9;

	text-align: center;
}

footer button {
	display: inline-block;

	padding: 10px;
	padding-left: 15px;
	padding-right: 15px;

	border: 1px solid #b0b0b0;
	border-radius: 2px;
	background-image: linear-gradient(0deg, #ecf0f1, #ffffff);
	background-image: linear-gradient(0deg, #d5d5d5, #ffffff 90%);

	color: #333333;
	font-size: 1.2em;
	font-family: Ubuntu;

	transition: border 0.3s;
}

footer button.previous,
footer button.install {
	display: none;
}

footer button:hover {
	border-color: #E74C3C;
}

footer button:focus {
	outline: none;
}

footer button:active {
	background-image: linear-gradient(0deg, #ffffff, #ecf0f1);
}

/**
 * Other elements
 */
h1, h2, h3 {
	display: block;

	margin: 0px;
	padding: 0px;
	padding-bottom: 10px;

	color: #2c3e50;
	font-family: 'Ubuntu Condensed';
	font-weight: normal;
}

p {
	display: block;
	margin: 0px;
	padding: 0px;
	padding-bottom: 10px;
}

ul, li {
	margin-top: 0px;
}

form {
	display: block;
}

form label {
	display: block;
	margin-bottom: 10px;
}

form label span {
	display: block;
}

form label.radio span,
form label.checkbox span {
	display: inline-block;
}

form select,
form input,
form textarea {
	min-width: 300px;

	margin: 0px;
	padding: 5px;

	border: 1px solid #999999;
	outline: 0px;
	background-color: #ffffff;

	color: #444444;
	font-size: 1em;
	font-family: Ubuntu, sans-serif, Arial, Tahoma;

	transition: all 0.3s;
}

form input[type=radio],
form input[type=checkbox] {
	margin-right: 3px;
	padding: 0px;

	float: left;
	clear: both;
}

form textarea {
	min-width: 450px;
	min-height: 150px;
	resize: none;
}

form input:focus,
form select:focus,
form textarea:focus {
	border: 1px solid #345DC9;
	color: #000000;

	transition: all 0.3s;
}
